#include "objectDL.h"

/****************************************************//**
 * Project-Namespace
 ********************************************************/
namespace jae
{

/****************************************************//**
 * Constructor of the class.
 ********************************************************/
ObjectDL::ObjectDL() :
    Object()
{
}

/****************************************************//**
 * Destructor of the class.
 ********************************************************/
ObjectDL::~ObjectDL()
{
}

/****************************************************//**
 * If method is empty, because it's never called by the
 * render() function for a displayList.\n
 * To use this kind of Object, you have to call 
 * setDisplayList(...) with an existing displaylist. 
 ********************************************************/
void ObjectDL::renderModel()
{
    Logger logger;
    logger.error("ERROR", "void ObjectDL::renderModel()",
            "This method shouldn't be called, because a DisplayList"
            "Object has no\n own modeldata. You may haven't called"
            " setDisplayList(...) for this object!");
}

/****************************************************//**
 * Sets the scale factor of an Object (=Size).
 ********************************************************/
void ObjectDL::setScaleFactor(GLfloat aValue)
{
    Logger logger;
    logger.error("ERROR", 
            "void ObjectDL::setScaleFactor(GLfloat aValue)",
            "Displaylists can not be scaled!");
    logger.write("  aValue: "); logger.write(aValue); logger.write("\n");
}

/****************************************************//**
 * @return Returns the scale factor of an Object (=Size).
 ********************************************************/
GLfloat ObjectDL::getScaleFactor()
{
    return 1.0f;
}

} //jae Namespace
